-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
send warning when we receive a old commitment transaction #1430
send warning when we receive a old commitment transaction #1430
Conversation
f40c9bb
to
136171d
Compare
7ae6fdc
to
fc33225
Compare
c70e6d3
to
d04ca27
Compare
Codecov Report
@@ Coverage Diff @@
## main #1430 +/- ##
==========================================
+ Coverage 90.89% 91.36% +0.46%
==========================================
Files 75 75
Lines 41657 43716 +2059
Branches 41657 43716 +2059
==========================================
+ Hits 37866 39941 +2075
+ Misses 3791 3775 -16
Continue to review full report at Codecov.
|
5ada132
to
3e41b90
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK! I tried to make a little bit of refactoring and applied the changes that you suggested.
The only think that is unclear to me right now, is this case
Why in this case there is a CloseDelayBroadcast
why does mean? i was not able to find some comments about the meaning, and I didn't check if the spec has some info about this case!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay in reviewing this!
c80ea92
to
5a55542
Compare
5a55542
to
43edafa
Compare
Rebased on master, I reorganized the test in a more clean way where the different cases are executed at the end of the function. In this way, it is cleaner to the reader what we are trying to do! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! One note - we don't like having intermediate commits that fail tests. We don't test for it in CI (only that it compiles), but if at all possible try to make sure each individual commit passes tests as well, ensuring we can git bisect easily.
53d7cda
to
8931516
Compare
Sorry! I rebased and squash the commit in a single one! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically looks good, one comment on the second branch of the test.
8931516
to
6dac37b
Compare
6dac37b
to
c341020
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
d3651e1
to
833a74e
Compare
Hmm, was there a conflict? In general please avoid rebase'ing unless there's a conflict with the current upstream git. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically LGTM, lets get another reviewer.
833a74e
to
ae47520
Compare
ae47520
to
5dd4662
Compare
I clean up the code and remove the enum. thanks, @valentinewallace to point me on this, and also for the grammar mistake! I also rebased on top of the last master! |
Generally please avoid this unless there is a conflict. Rebases make it harder to diff-tree and see changes to a PR, range-diff can be a bit more finicky and hard to read. |
Ops! sorry @TheBlueMatt |
5dd4662
to
a399d1f
Compare
6ecb4d6
to
040b3cd
Compare
During a `channel_reestablish` now we send a warning message when we receive a old commitment transaction from the peer. In addition, this commit include the update of functional test to make sure that the receiver will generate warn messages. Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
040b3cd
to
e6300da
Compare
During a
channel_reestablish
now we send a warning message when we receive an old commitment transaction.Fixes #1207 with the following consideration lightning/bolts#934 (comment)